package com.tpshion.cloud.auth.utils.support;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 用户菜单树
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MenuTree {

    private String name;

    private String title;

    private String icon;

    private List<MenuTree> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<MenuTree> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTree> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "MenuTree{" +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", icon='" + icon + '\'' +
                ", children=" + children +
                '}';
    }
}
